package org.example.groupwarehouse.service.admin;

import org.example.groupwarehouse.entity.Admin;
import org.example.groupwarehouse.entity.Users;

import java.util.List;

/**
 * 管理员服务接口
 */
public interface AdminService  {
    /**
     * 管理员登录
     */
    Admin login(String account, String password);

    List<Admin> getAllAdmins();
    List<Users> getAllUsers();
    int addAdmin(Admin admin);
    int updateAdminStatus(Integer id, Integer status);
    void changePassword(Integer id, String newPassword);
    boolean isAccountExist(String account, Integer excludeId);

    List<Users> searchUsers(String account, String eml, String tel);

    void batchDelete(Integer id);
}